import React from 'react'
import {connect} from "dva";
import OrderForm from "./components/OrderForm";




class OrderInfo extends React.Component{

  // constructor(pros){
  //   super(pros);
  // }
  componentDidMount(){
    const {dispatch} = this.props;
    console.log("hahhaha",(dispatch))
  }

  render() {

    const {orderInfo} = this.props;

    console.log(orderInfo)


    return (
      <div>
       <p>我是一个页面</p>
        <OrderForm />
      </div>
    );
  }

}

OrderInfo.propTypes = {
};


function mapStateToProps({orderInfo}) {
  return {orderInfo}
}

export default connect(mapStateToProps)(OrderInfo);
